using System.Collections.Generic;

namespace zevenseas.Community.Search
{
    public class TestClass
    {

        void testfunction()
        {
            MOSSSQLSearch mossSearch = new MOSSSQLSearch();
            SelectStatement selectStatement = new SelectStatement();
            List<string> returnProperties = new List<string>();
            List<string> Scopes = new List<string>();
            Scopes.Add("All Sites");
            WhereStatement whereStatement = new WhereStatement();
            whereStatement.Scopes = Scopes;
            whereStatement.Keywords = "test";
            whereStatement.KeywordsType = SearchTypes.Contains;
            WhereGroup whereGroup = new WhereGroup();
            WherePropertyContains whereProperty = new WherePropertyContains();
            whereProperty.Property = "Account";
            whereProperty.SearchTerm = "sdfsdf";
            whereGroup.WhereProperties.Add(whereProperty);
            whereProperty = new WherePropertyContains();
            whereProperty.Property = "contentclass";
            whereProperty.SearchTerm = "sdfsdf";
            whereProperty.PropertyOperator = LogicalOperators.AND;
            whereGroup.WhereProperties.Add(whereProperty);
            returnProperties.Add("Categories");
            mossSearch.Where = whereStatement;
            selectStatement.ReturnProperties = returnProperties;
            mossSearch.SelectStatement = selectStatement;

        }
    
    }
}